const BASE_URL = 'http://localhost:9000/'

const getFolderList = (parentPath) => {
  return axios.get(`${BASE_URL}folderList?parentPath=${parentPath}`)
}

const getFileList = (current, pageSize, parentPath) => {
  return axios.get(`${BASE_URL}fileList/${current}/${pageSize}?parentPath=${parentPath}`)
}

const fileDownload = (parentPath, fileName) => {
  window.location.href = `${BASE_URL}download?parentPath=${parentPath}&fileName=${fileName}`
}
